package com.zl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zl.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<UserEntity> {

//    @Select("select * from user where id=#{id}")
//    UserEntity getById(int id);


    @Select("select * from users where username=#{username}")
    UserEntity getByUserName(String username);
}
